package chapter13.wrapper.Exercise;

import java.util.zip.DeflaterOutputStream;

/**
 * @Auther: Tx
 * @Date: 2022/5/4 14:03
 */
public class Ex01 {
    public static void main(String[] args) {
        Double d1 = 5.0;
        Float f1 = 50.0f;

//三元运算符是一个整体，故会提高精度
        Object obj1 = true ? new Integer(1):new Double(5.0);
        System.out.println(obj1);

        Object obj2;
        if (true){
            obj2 = new Integer(1);
        }else{
            obj2 = new Double(5.0);
        }
        System.out.println(obj2 );
    }
}
